{#include file="top.php"#}
<script>
    function stlist(l,t){
        $('[c=tlist'+l+']').hide();
        $('#tlist'+l+'_'+t).show();
    }
    function toggle(obj,t){
        $('#'+obj).css('left',$(t).attr("offsetLeft"));
        if($('#'+obj).attr('c')<0){
            $('#'+obj).slideToggle('fast');
            $('#'+obj).attr('c',1);
        }else if($('#'+obj).attr('c')==0){
            $('#'+obj).attr('c',1);
        }
    }
    function toggle_out(i){
        if($('#ptype_box_'+i).attr('c')==1){
            $('#ptype_box_'+i).attr('c',0);
            setTimeout('toggle_out_f('+i+')',200);
        }
    }
    function toggle_out_f(i){
        if($('#ptype_box_'+i).attr('c')==0){
            $('#ptype_box_'+i).attr('c',-1);
            $('#ptype_box_'+i).slideToggle('fast');
        }
    }
</script>
<div class="body">

    <div class="main fl">
        <div class="r_box r_box_t b_box">
            <div class="hd">
				<img src="/images/fg/fg_title_01.jpg" alt="" />
			</div>
            <div class="bd">
                <div class="tag">
                    <a href="{#optimize_url('fg', 'list')#}">所有分類</a>|
                    {#foreach  from=$ptype_arr item=v key=k#}
                    <a href="javascript:void(0);" t=1 onclick="$('[t=1]').removeClass('curr');$(this).addClass('curr');$('.tag_popup').hide();$('#ptype_box_{#$k#}').show();" {#if $ptype==$k||$ptype_kv.t==$k#}class="curr"{#/if#}><i class="tri right"></i>{#$v.name#}</a>|
                    {#/foreach#}
                </div>
                {#foreach  from=$ptype_arr item=v key=k#}
                <div id="ptype_box_{#$k#}" class="tag_popup" style="{#if $ptype==$k||$ptype_kv.t==$k#}display:block;{#else#}display:none;{#/if#}">
                    <a href="javascript:void(0);" class="close" onclick="$('#ptype_box_{#$k#}').hide();"></a>
                    <ul class="tag_list">
                        <li><a {#if $ptype==$k#}style="color:#ED2674;"{#/if#} href="{#optimize_url('fg', 'list', 'ptype='|cat:$k)#}">全部</a></li>
                        {#foreach  from=$v.list item=v1 key=k1#}
                        <li><a {#if $ptype==$v1.id#}style="color:#ED2674;"{#/if#} href="{#optimize_url('fg', 'list', 'ptype='|cat:$v1.id)#}">{#$v1.cname#}</a></li>
                        {#/foreach#}
                    </ul>
                </div>
                {#/foreach#}
				
				{#foreach  from=$fg_list.result item=v key=k#}
					<div class="fg_areabox {#if $k eq (count($fg_list.result)-1)#}last{#/if#}">
						<div class="img_box"><p class="img_p"><a href="{#$v._url#}"><span><img src="{#$v._img#}" alt="" />
								</span></a></p><i class="fg_star_a">
									<img src="/images/fg/fg_star_a.png" alt=""/>
								</i></div>
						<h2 class="title">
							<a class="title" href="{#$v._url#}" >{#$v._title#}</a>
						</h2>
						<table class="fg_areabox_tb">
							<tr>
								<td class="td_l">價格</td>
								<td>${#$v.itrial_price#}</td>
							</tr>
							{#if $v.attribute_value1#}
							<tr>
								<td class="td_l">實際容量</td>
								<td>{#$v.attribute_value1#}</td>
							</tr>
							{#/if#}
							{#if $v.capacity_trial#}
							<tr>
								<td class="td_l">{#if $v.member_type eq 5#}體驗{#else#}試用{#/if#}規格</td>
								<td>{#$v.capacity_trial#}</td>
							</tr>
							{#/if#}
							<tr>
								<td class="td_l">票數</td>
								<td>{#$v.amount#}票</td>
							</tr>
						</table>
						<a href="{#$v._url#}" class="view_more">看使用心得</a>
						<table class="tb" border="0" cellspacing="0" cellpadding="0">
							<tr>
								<td width="120" style="vertical-align:top">
								<img src="http://chart.apis.google.com/chart?cht=p&chd=t:{#$v.item5apercent#},{#$v.item4apercent#},{#$v.item3apercent#},{#$v.item2apercent#},{#$v.item1apercent#}&chs=110x110&chco=cdbae1|a791bd|87719d|4c3662|311b47" style="vertical-align:top"></td>
								<td width="90" align="left" style="vertical-align:top">
								<table border="0" cellspacing="0" height="96" cellpadding="2">
									<tr>
										<td><font class="squ1">很好</font></td>
										<td><font class="style6">{#$v.item1apercent#}%</font></td>
									</tr>
									<tr>
										<td><font class="squ2">好</font></td><td><font class="style6">{#$v.item2apercent#}%</font></td>
									</tr>
									<tr>
										<td><font class="squ3">普通</font></td><td><font class="style6">{#$v.item3apercent#}%</font></td>
									</tr>
									<tr>
										<td><font class="squ4">差</font></td>
										<td><font class="style6">{#$v.item4apercent#}%</font></td>
									</tr>
									<tr>
										<td><font class="squ5">很差</font></td>
										<td><font class="style6">{#$v.item5apercent#}%</font></td>
									</tr>
								</table></td>
							</tr>
						</table>
					</div>
				{#/foreach#}
				
            </div>
        </div>
        {#$pagelist#}
    </div>
    <!-- main-->
    <div class="sidebar">
		{#show_block('b2',1,'','sidebar_ad')#}
        {#show_block('b1',2,'','sidebar_function')#}
        {#show_block('b3',0,'','sidebar_search')#}
        {#show_block('b13',0,'','sidebar_registation')#}
        {#show_block('b5',0,'','sidebar_top3 b_box')#}
        {#show_block('b6',0,'','sidebar_facebook')#}
    </div>
    <!-- sidebar -->

</div>
</div>
</div><!--body-->
{#include file="footer.php"#}